package com.dfbz.demo;

import java.io.FileInputStream;
import java.io.FileOutputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_普通流写出int数问题 {
    public static void main(String[] args)throws Exception {


        FileOutputStream fos = new FileOutputStream("001.txt");

        /*
        00000000 00000000 00000011 00100000
         */
        fos.write(800);
        fos.close();


        FileInputStream fis = new FileInputStream("001.txt");
        System.out.println(fis.read());
        fis.close();

    }
}
